package com.hjc.springbootstudyweb;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/* @Controller + @ResponseBody*/
@Controller
@SpringBootApplication
@MapperScan("com.hjc.springbootstudyweb.mapper") //会提高耦合度(不推荐)
public class SpringbootStudywebApplication {

    @RequestMapping(value = "/")
    public String index(){
        return "html/index";
    }
    public static void main(String[] args) {
        SpringApplication.run(SpringbootStudywebApplication.class, args);
    }

}
